package com.fp.m7.shared.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * DTO for comment data.
 * 
 * @author 7
 */
public class CommentDto extends BaseDto {
    private static final long serialVersionUID = -3718727006584322476L;

    private Date date;
    private String content;
    private UserDto userDto;

    public CommentDto() {
    }

    public CommentDto(Serializable id, Date date, String content, UserDto userDto) {
        this.id = id;
        this.date = date;
        this.content = content;
        this.userDto = userDto;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public UserDto getUserDto() {
        return userDto;
    }

    public void setUserDto(UserDto userDto) {
        this.userDto = userDto;
    }

    @Override
    public String toString() {
        return new StringBuilder("CommentDto [id=").append(id) //
                .append("; content=").append(content) //
                .append("; date=").append(date) //
                .append("; author=").append(userDto) //
                .append("]").toString();
    }

}
